import request from '@/utils/request';

// 拼团管理相关接口
// Group Buy Order Controller

// /api/groupbuy/order/list
// 列表
export function groupbuyList(data) {
  return request({
    url: '/api/groupbuy/order/list',
    method: 'post',
    data
  })
}

// /api/groupbuy/order/items
// 查询拼团数据
export function groupbuyItems(data) {
  return request({
    url: '/api/groupbuy/order/items',
    method: 'post',
    data
  })
}

// 拼团订单管理相关接口
export function groupbuyOrderList(data) {
  return request({
    url: '/api/groupbuy/order/user/list',
    method: 'POST',
    data,
  })
}

// /api/groupbuy/order/user/express  发货
export function groupbuyOrderExpress(data) {
  return request({
    url: '/api/groupbuy/order/user/express',
    method: 'POST',
    data,
  })
}


//分红相关接口
// /api/bonus/sharing
// 分红
export function bonusSharing(data) {
  return request({
    url: '/api/bonus/sharing',
    method: 'POST',
    data,
  })
}
// /api/bonus/statistics
// 统计信息
export function bonusStatistics(data) {
  return request({
    url: '/api/bonus/statistics',
    method: 'POST',
    data,
  })
}
// /api/bonus/statistics
// 统计信息
export function systemState() {
  return request({
    url: '/api/app/system/state',
    method: 'POST'
  })
}


// 日统计相关接口
// Data Of Day State Controller
// /api/day/data/list
// 列表
export function dayDataList(data) {
  return request({
    url: '/api/day/data/list',
    method: 'POST',
    data,
  })
}
